"""
该文件用于 保存页面
"""
import uiautomation as auto
from page.base_page import BasePage
from utils.utils_log import loggerCase
from common_ai_img import AIButton, Icon, OcrText

class SavePage(BasePage):
    """保存页面"""

    # 保导出钮
    __export_the_scan_button = AIButton(Icon("export the scan"))

    # 保存到本地按钮
    __save_mesh_locally = AIButton(OcrText("Save mesh locally"))


    def click_export_the_scan_button(self, max_wait_time=3):
        """导出"""
        loggerCase.info("点击导出")
        self.click(SavePage.__export_the_scan_button, max_wait_time=max_wait_time)

    def click_save_mesh_locally(self, max_wait_time=3):
        """保存到本地"""
        loggerCase.info("点击保存到本地")
        self.click(SavePage.__save_mesh_locally, max_wait_time=max_wait_time)
